package com.yonyou.brigade.third_parties.ystrip.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangjqh@yonyou.com
 * @since 2018-07-19
 */
@TableName("ystrip_user_history")
public class YstripUserHistory extends Model<YstripUserHistory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 公司编号
     */
    @TableField("company_no")
    private String companyNo;
    /**
     * 用户编号
     */
    @TableField("user_no")
    private String userNo;
    /**
     * 用户主键
     */
    @TableField("user_id")
    private String userId;
    /**
     * 用户姓名
     */
    @TableField("user_name")
    private String userName;
    /**
     * 用户手机
     */
    @TableField("user_phone")
    private String userPhone;
    /**
     * 用户邮箱
     */
    @TableField("user_email")
    private String userEmail;
    /**
     * 身份证号
     */
    @TableField("card_no")
    private String cardNo;
    /**
     * 备注
     */
    private String remark;
    /**
     * 渠道
     */
    private String channel;
    /**
     * 返回状态
     */
    private String status;
    /**
     * 返回描述
     */
    private String result;
    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String COMPANY_NO = "company_no";

    public static final String USER_NO = "user_no";

    public static final String USER_ID = "user_id";

    public static final String USER_NAME = "user_name";

    public static final String USER_PHONE = "user_phone";

    public static final String USER_EMAIL = "user_email";

    public static final String CARD_NO = "card_no";

    public static final String REMARK = "remark";

    public static final String CHANNEL = "channel";

    public static final String STATUS = "status";

    public static final String RESULT = "result";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "YstripUserHistory{" +
        "id=" + id +
        ", companyNo=" + companyNo +
        ", userNo=" + userNo +
        ", userId=" + userId +
        ", userName=" + userName +
        ", userPhone=" + userPhone +
        ", userEmail=" + userEmail +
        ", cardNo=" + cardNo +
        ", remark=" + remark +
        ", channel=" + channel +
        ", status=" + status +
        ", result=" + result +
        ", ts=" + ts +
        "}";
    }
}
